package com.fa4j.third.file.local.config;

import com.fa4j.third.base.config.ThirdAdapterConfigurer;
import com.fa4j.third.file.local.adapter.LocalFileServiceAdapter;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.PropertySource;

@AutoConfiguration
@PropertySource(value = "classpath:third-file-local-default.properties")
public class LocalFileAutoConfiguration {

    @Bean
    public ThirdAdapterConfigurer localFileAdapterConfigurer() {
        return new ThirdAdapterConfigurer(LocalFileServiceAdapter.class);
    }
}
